﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DearlerPlatform.Service.CustomerApp.Dto
{
    public class CustomerLoginDto
    {
        [Required(ErrorMessage = "用户名不能为空")]
        [MaxLength(15,ErrorMessage ="用户名不能大于15个字符")]
        [MinLength(5,ErrorMessage = "用户名不能小于5个字符")]
        public string CustomerNo { get; set; }
        [Required(ErrorMessage = "密码不能为空")]
        [MaxLength(20, ErrorMessage = "密码不能大于20个字符")]
        [MinLength(3, ErrorMessage = "密码不能小于3个字符")]
        public string Password { get; set; }
    }
}
